package cn.cqie.attendance.teacher.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wqh
 * @date 2021/6/22 10:41
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "leave_log对象", description = "")
@Alias("leave_log")
public class TeacherLeaveLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "请假日志id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "操作人ID")
    private Integer teacherId;

    @ApiModelProperty(value = "操作人")
    private String teacherName;

    @ApiModelProperty(value = "请假id")
    private Integer leaveId;

    @ApiModelProperty(value = "请假状态")
    private Integer leaveStatus;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "操作时间")
    private Date transitTime;

    @ApiModelProperty(value = "说明")
    private String reasonDetail;

    @ApiModelProperty(value = "不通过原因")
    private String failedDetail;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "申请时间")
    private Date applyTime;

}
